import { saveAs } from 'file-saver';
export const downloadMap = (map) => {
  map.once('postcompose',(e) => {
    const canvas = e.context.canvas
    canvas.toBlob((blob) => {
      saveAs(blob,'map.png')
    })
  })
  map.renderSync()
}
